import request from "@/utils/request";

// 获取文件信息
export function getfiles(id) {
  return request({
    url: "/common/files/" + id,
    method: "get",
  });
}
// 获取文件列表
export function getfileslist(query) {
  return request({
    url: "/common/files/list",
    method: "get",
    params: query,
  });
}
// 文件列表新增
export function postFilesAdd(data) {
  return request({
    url: "/common/files",
    method: "post",
    data: data,
  });
}
// 删除文件
export function delfiles(ids) {
  return request({
    url: "/common/files/" + ids,
    method: "delete",
  });
}
// 更新文件信息
export function putfiles(data) {
  return request({
    url: "/common/files",
    method: "put",
    data:data,
  });
}